/****** Object:  Stored Procedure dbo.spr_LoadDBClientsByPK  ******/

 use [TourIS]
 GO

 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spr_LoadDBClientsByPK]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure [dbo].[spr_LoadDBClientsByPK]
 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS OFF
 GO

 CREATE  PROCEDURE [dbo].[spr_LoadDBClientsByPK]
 (
	@clientid int,
	@compid int
 )
 AS

 BEGIN
	SET NOCOUNT ON
	DECLARE @Err int

	SELECT
		[Address1],
		[Address2],
		[ClientId],
		[ClientName],
		[CompId],
		[ContactNo],
		[EmailId],
		[ExpiryDate],
		[HomeCountry],
		[IsActive],
		[NIC],
		[PassportNo],
		[Password],
		[Reason],
		[Remarks]
		FROM [Clients]
	WHERE
	[ClientId] = @clientid
	AND [CompId] = @compid


	SET @Err = @@Error
	RETURN @Err
 END

 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS ON
 GO

